/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tdtest.controls.factory;

import javafx.scene.Node;
import tdtest.controls.ControlFactory;
import tdtest.controls.FunctionControl;
import tdtest.data.TDFunction;

/**
 *
 * @author sutter
 */
public class FunctionControlFactory implements ControlFactory<TDFunction> {
	
	@Override
	public Node createControl(TDFunction function) {
		FunctionControl functionControl = new FunctionControl(function);
		return functionControl;
	}
	
	@Override
	public TDFunction createObject() {
		return new TDFunction();
	}
	
}
